package com.linln.openapi.demo;

import com.linln.common.enums.ResultEnum;
import com.linln.common.vo.ResultVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @author hzhufa
 * @date 2024/06/13
 */
@Controller
@RequestMapping("/api/demo/v1")
public class DemoController {
    @GetMapping("/test")
    @ResponseBody
    public ResultVo test(@RequestHeader(name="Authorization") String authorization,@RequestParam("idCard") String idCard){
        ResultVo resultVo = new ResultVo();
        resultVo.setMsg("处理成功");
        resultVo.setCode(ResultEnum.SUCCESS.getCode());
        resultVo.setData(idCard);
        return resultVo;
    }
}
